class People:
    pass
    def __init__(self,name,gander,age):
        self.name = name
        self.gander = gander
        self.age = age

    def sing(self):
        print('唱')
    def jump(self):
        print('跳')
    def basketball(self):
        print('打篮球')

# 人   性别 ,年龄 ,爱好   名词性描述   固有属性
#      吃饭睡觉           动作类描述    干什么
zhangsan = People('zhangsan','nan',18)
print(zhangsan.name)
zhangsan.basketball()

class Animal():
    pass

    def __init__(self,name,weight,color):
        self.name = name
        self.weight = weight
        self.color = color
    def eat(self,eat_what):
        print('吃{}'.format(eat_what))
    def sleep(self,sleep_name):
        print('睡{}觉'.format(sleep_name))
    def run(self,run_how):
        print('run:{}'.format(run_how))
    def call(self,call_how):
        print(call_how)
cat = Animal('猫','18kg','yellow',)
print(cat.name)
print(cat.color)
print(cat.weight)
cat.eat('鱼')
cat.sleep('cat')
cat.run('cat `biu`')
cat.call('call: 喵喵喵')

dog = Animal('猫','18kg','yellow',)
dog.eat('屎')
dog.sleep('dog')
dog.run('dog `biu`')
dog.call('call: 汪汪汪')
